home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1986 May
/
1986-05.d64
/
vampyre hunter
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
32KB
|
814 lines
1 if a=0 then a=1:load "chrout.obj",8,1
10 rem vampyre hunter v8; 6/11/84
15 ifpeek(49152)<>18thenprint"[205][204]?":stop
20 sp=53269:bo=53280:sc=53281:print"[147]":pokebo,2:pokesc,2
25 deffna(i)=peek(i)+256*peek(i+1):deffnd(i)=int(rnd(1)*i)
30 i=49152:iz=fna(i):mv=fna(i+2):wk=fna(i+4):bp=fna(i+6):cs=fna(i+8)
35 mt=fna(i+10):mb=fna(i+12):mr=fna(i+14):ev=fna(i+16)
40 sysiz:print"[147][150]"tab(13)"[214]ampyre [200]unter"
45 syscs:sysmt:pokebo,2:pokesc,2
50 s8$=" "
55 dl$=" "
60 s1$=" ":s4$=" ":readnt,mw,sl,ms,q,x,z,wf,pe$,ar$,dr$,d1$,dn$,dr,tn,ve,no
65 readso,fo,lf,pl,rs,mc,bc,ne,de,wv,io,sv,ws,al$,bu$,cd$,dy,tt,xs,ys,ls
70 readbh,rh,dh,ch,th,os,sh,wc,vr,ng,af,nu,vh,se
75 cd=len(cd$)-x:dimcd$(cd),dr$(dr),tn$(tn),tn(tn),ve$(ve),no$(no),np%(no)
80 dimnw%(no),ns%(no),nd$(no),sh%(no),ne%(no+x),ms%(ms),so%(so),so$(so)
85 dimfo%(fo),nu%(fo),fd$(fo),pn$(pl),pd%(pl+x),pp$(pl),ps$(pl),pv%(pl)
90 dimrd$(rs),bc%(mc+x),bc$(bc),ne$(ne),de$(de),wv%(wv),io%(no),sv%(sv)
95 dimws%(no),wo$(sl),nd%(sl),nc%(sl),dd%(2,5),cc$(2),cc(2),er$(8),se%(se)
100 fori=0to2:forj=0to5:readdd%(i,j):next:next
105 fori=0tocd:readcd$(i):next:fori=0todr:readdr$(i):next:fori=0totn
110 readtn$(i),tn(i):next:fori=0tove:readve$(i):next:fori=0toms:ms%(i)=-2:next
115 fori=0tono:readno$(i),np%(i),nw%(i),nd$(i),ns%(i):next
120 fori=0toso:readso%(i),so$(i):next:fori=0toso:sh%(so%(i))=i+x:next
125 fori=0tofo:readfo%(i),nu%(i):next
130 fori=0tofo:readfd$(i):next:fori=0topl:readpn$(i),pp$(i),ps$(i):next
135 fori=0tors:readrd$(i):next:j=0:fori=0tobc
140 readbc$(i):ifbc$(i)=z$thenj=j+x:bc%(j)=i:goto140
145 next:bc%(j+x)=bc+x:j=0:fori=0tone
150 readne$(i):ifne$(i)=z$thenj=j+x:ne%(j)=i:goto150
155 next:ne%(j+x)=ne+x:j=0:fori=0tode
160 readde$(i):ifde$(i)=z$thenj=j+x:pd%(j)=i:goto160
165 next:pd%(j+x)=de+x:nw%(6)=ns%(6)*2
170 fori=0towv:readwv%(i):next:fori=0toio:readj:io%(j)=q:next
175 fori=0tosv:readsv%(i):next:fori=0tows:readn,j:ws%(n)=j:next
180 fori=0to2:readcc$(i),cc(i):next:fori=0to8:reader$(i):next
185 i=53248:pokei+23,0:pokei+29,0:pokei+27,0:pokei+28,0:pokei+16,0:pokei,184
190 pokei+21,0:pokei+1,114:k=65472:fori=0to47:readj:pokei+k,j:next
195 fori=48to63:pokei+k,0:next:poke53240,255:fori=0tose:readse%(i):next
200 s2=q:pokeng,0:sysev:print"[147][215]elcome! to [214][193][205][208][217][210][197] [200][213][206][212][197][210]":gosub830
205 gosub1865:pv%(0)=q:t3=tt:t4=tt
210 :
215 print:ificthenpoke214,20:print:printdl$dl$:poke214,20:print
220 print"? ";:gosub2760:ifnoticthen235
225 print"[147]":iflnthensysmv
230 poke214,17:print
235 ifhv>5thenprint"[201] need some rest.
240 [139]nu[179]30[167][153]"right$'m hungry.
245 ifhv>9thengosub575:print"[217]ou died of exhaustion at"t1-t;t$pe$:goto520
250 ifnu<-10thenprint"[217]ou have starved to death on day"dy"[157].":goto520
255 ifin$="again"thenin$=j$:print"("j$")
260 j$[178]in$
265 [139]zl[178]q[167][153]"lenome again?":[137]215
270 in$[178]in$[170]s1$:[129]i[178]0[164]sl:wo$(i)[178]pe$:[130]:wn[178]0:j[178]x
275 [139][202](in$,j,x)[179][177]s1$[167]295
280 wo$(wn)[178][200]([200](in$,j[171]x)[170]s4$,4):in$[178][202](in$,j[170]x):j[178]0
285 [129]i[178]1[164][195](ar$)[169]4:[139]wo$(wn)[178][202](ar$,i,4)[167]wo$(wn)[178]pe$:[137]295
290 [130]:wn[178]wn[170]x
295 j[178]j[170]x:[139][168]j[177][195](in$)[167]275
300 nw[178]0
305 in$[178]wo$(nw):[139]in$[178]pe$[167]215
310 [141]800:[139][168](vf[177]0[175]np%(vr)[179][177]67[175][168]nt)[167]320
315 [153]"(NULL)he vampire looks up into the sun and melts away.":[137]505
320 [129]i[178]1[164][195](dr$)[169]4
325 [139]in$[178][202](dr$,i,4)[167]v[178]0:[137]350
330 [130]
335 nw[178]nw[170]x:[129]i[178]0[164]ve:[129]j[178]1[164][195](ve$(i))[169]4
340 [139]in$[178][202](ve$(i),j,4)[167]v[178]i:v1[178](j[171]x)[173]4:[137]350
345 [130]:[130]:[153]er$(0):[137]215
350 [145]v[170]x[141]1010,1010,1290,1420,1435,1550,1800,2415,2750,1975
355 [139]v[177]9[167][145]v[171]9[141]2120,2250,2500,2650,2665,2715,535,540,765,770,545
360 [139]v[177]20[167][145]v[171]20[141]2285,595,605,555,430,475,490,385,780,375
365 [137]305
370 :
375 [153]"load":[137]820
380 :
385 [141]1595:[139][168]nc[178]x[176][168]nc%(0)[178]19[176][168]nc%(1)[178]40[167][153]er$(0):[142]
390 n[178]19:[141]1645:[139][168]nl[178]q[167][153]er$(1)nd$(19)pe$:[142]
395 [139][168]np%(8)[178]q[167][153]"right$ must have the mallet.":[142]
400 tx[178]cx:ty[178]cy:tl[178]cl:[141]2775
405 [139]wh[178]vh[176]nt[167][153]"(NULL)he vampire must be asleep.":[142]
410 [139][168]wh[178]ch[167][153]er$(2)"coffin here.":[142]
415 [139]hv[177]5[167][153]"(NULL)ou are too tired to do this deed.":[142]
420 [153]"(NULL)ou have driven a wooden stake into the vampire.":[137]505
425 :
430 in$[178]wo$(nw):nw[178]nw[170]x
435 [139][168]af[177]0[167][153]"(NULL)here is no fuel.":[142]
440 n[178]5:[141]1645:[139]nl[178]q[167]460
445 [139]nl[178]z[167][153]er$(2)nd$(n)" here.":[142]
450 pr[178]q:[141]1385:[141]1645
455 [139][168]nl[178]q[167][153]er$(1)nd$(n)pe$:[142]
460 [139]in$[178]"on "[167]tt[178]tt[170]3:ln[178]q:[153]nd$(n)" is now on.":[142]
465 [139]in$[178]"off "[167]tt[178]tt[170]2:ln[178]z:[153]nd$(n)" is now off.":[142]
470 nw[178]nw[171]x:[153]er$(0):[142]
475 [141]1595:[139][168]nc[178]0[167][153]er$(0):[142]
480 [139][168]nc%(0)[178]5[167][153]"(NULL)ou can not light the "nd$(nc%(0))pe$:[142]
485 in$[178]"on ":[137]435
490 [141]1595:[139][168]nc[178]0[176][168]nc%(0)[178]5[167][153]er$(0):[142]
495 in$[178]"off ":[137]435
500 :
505 [141]575:[153]"(NULL)he vampire was killed on day"dy"cmd, at"t1[171]t;t$". ";
510 [153]"lenongratulations, you are now the champion (NULL)atn(NULL)(NULL)(NULL)(NULL)val left$(NULL)(NULL)(NULL)val(NULL)!"
515 :
520 [151]sp,0:[153]"(NULL)lay again? ";:[141]2760:[139][200](in$,1)[178]"y"[167][138]
525 [153]"load":[128]
530 :
535 [153]"(NULL)eeee!!":[142]
540 [153]"atnghhhh!!!":[142]
545 [153]"left$ello!":[142]
550 :
555 [129]ip[178]0[164]2:[153]cc$(ip);:[141]2760
560 [139]in$[177]""[175]vi[177][178]0[175]vi[179]16[167][151]cc(ip),vi
565 [130]:[142]
570 :
575 t$[178]"atn":t[178]0:[139]tt[177]719[167]t$[178]"(NULL)":t[178]12
580 t1[178][181](tt[173]60):t$[178]"cmd:"[170][201]("0"[170][202]([196]([181]((tt[173]60[171]t1)[172]60)),2),2)[170]t$
585 [139]t1[178]0[167]t1[178]12
590 [142]
595 [141]575:[153]"right$t's"t1[171]t;t$" of day"dy"cmd.":[142]
600 :
605 [141]1595:[139][168]nc[178]1[167][153]er$(0):[142]
610 in[178]nc%(z):dn[178]nc%(1):[139][168](in[178]5[175]dn[178]9)[167]635
615 n[178]dn:[141]1645:[139][168]nl[178]q[167][153]er$(1)nd$(n)pe$:[142]
620 n[178]in:[141]1645:[139][168]nl[178]q[167][153]er$(1)nd$(n)pe$:[142]
625 [139]af[177]500[167][153]"(NULL)here is still too much fuel in the "nd$(n)pe$:[142]
630 af[178]af[170]600:np%(dn)[178][171]2:[153]"(NULL)he lamp is refueled.":[142]
635 [139][168]io%(in)[167]in[178]nc%(1):dn[178]nc%(0)
640 n[178]dn:[141]1645:[139][168]nl[178]q[167][153]er$(1)nd$(n)pe$:[142]
645 n[178]in:[141]1645:[139]nl[178]0[167][153]er$(2)nd$(n)" here.":[142]
650 tt[178]tt[170]5:[139][168]dn[178]6[167][141]1530:[137]665
655 [139][168]dn[178]6[167][141]1530:[137]665
660 n[178]dn:[141]2625
665 [139][168]ic[167]695
670 [139]in[178]40[167]685
675 [153]er$(7)nd$(dn)pe$:[139]dn[178]6[167][142]
680 dn[178]lo:lo[178]80:[141]1535:lo[178]dn:[142]
685 [129]i[178]0[164]sv:[139][168]dn[178]sv%(i)[167][130]:[137]675
690 [137]735
695 [153]nd$(dn)":given.":[139][168]in[178]2[167]710
700 [139]dn[178]6[167]df[178]q:[153]"(NULL)he dog is following you now.":[142]
705 [153]er$(5):[142]
710 [139][168]in[178]3[167]725
715 [139]dn[178]6[167][153]"(NULL)hey eat hungrily but stay for more.":dg[178]q:[142]
720 [153]er$(5):[142]
725 [139]in[178]38[176]in[178]39[167][153]er$(5):[142]
730 [129]i[178]0[164]sv:[139][168]dn[178]sv%(i)[167][130]:[153]er$(5):[142]
735 [139][168](dn[178]11[176]dn[178]14[176]dn[178]15[176]dn[178]18)[167]745
740 [153]"(NULL)he vampire changes into a bat and flies away.":[137]915
745 ns%(dn)[178]0:nw%(dn)[178]nw%(dn)[173]3:nd$(dn)[178]"empty "[170]nd$(dn):[139]dn[179][177]13[167]740
750 [153]"(NULL)he vampire clutches where the holy water hit him ";
755 [153]"and lunges at you in rage.":vf[178]5[170][165]d(5):[